<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .table_line {
            border: 1px;
        }
    </style>

</head>
<body>
<div>{{ weekday }}</div>
<div>
    <h2>新增学生</h2>
    <form action="/students/" method="post">
        <label>
            <input type="text" name="name" placeholder="姓名">
            <input type="text" name="age" placeholder="年龄">
            <input type="text" name="nationality" placeholder="国籍">
            <input type="text" name="tel" placeholder="电话号码">
            <input type="text" name="email" placeholder="邮箱">
            <input type="submit" value="提交">
        </label>
    </form>
</div>
<div>
    <h2>学生列表</h2>
    <table class="table_line" border="2">
        <thead>
        <tr>
            <th>ID</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>国籍</th>
            <th>电话号码</th>
            <th>邮箱</th>
        </tr>
        </thead>
        <tbody>
        {% for row in students_query %}
            <tr>
                <td>{{ row.id }}</td>
                <td>{{ row.name }}</td>
                <td>{{ row.age }}</td>
                <td>{{ row.nationality }}</td>
                <td>{{ row.tel }}</td>
                <td>{{ row.email }}</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
</div>
</body>
</html>